package net.wanho.commons.service;

import net.wanho.commons.exception.DAOException;
import net.wanho.commons.exception.ServiceException;

import java.util.List;
import java.util.Map;

public abstract interface BaseService<T> {
    boolean remove(String id) throws ServiceException ;
    boolean save(T entity) throws ServiceException;
    boolean modify(T entity) throws ServiceException ;
    T findById(String id) throws ServiceException ;
    List<T> findAll() throws ServiceException;
    List<T> findByCond(Map<String,String> condMap) throws DAOException;
}
